import { Router } from 'hyper-express';
import requireUser from '../../../middlewares/auth/requireUser';
import cache from '../../../middlewares/cache';
import rowLevelPermission from '../../../middlewares/auth/rowLevelPermission';
//#region AutoCreateCode
import { uctooMinishopSkuStatusController } from '../../../controllers';
const uctoominishopSkuStatusRouter = new Router();
const minishopSkuStatusController = new uctooMinishopSkuStatusController();

uctoominishopSkuStatusRouter.post('/add', requireUser, minishopSkuStatusController.add);
uctoominishopSkuStatusRouter.post('/edit', requireUser, rowLevelPermission('uctoo/minishop_sku_status'), minishopSkuStatusController.edit);
uctoominishopSkuStatusRouter.post('/del', requireUser, rowLevelPermission('uctoo/minishop_sku_status'), minishopSkuStatusController.delete);

//For getting minishopSkuStatus with permission control
uctoominishopSkuStatusRouter.get('/:id', requireUser,  rowLevelPermission('uctoo/minishop_sku_status'), minishopSkuStatusController.getSingle);
uctoominishopSkuStatusRouter.get('/:limit/:page', requireUser,  rowLevelPermission('uctoo/minishop_sku_status'), minishopSkuStatusController.getMany);
uctoominishopSkuStatusRouter.get('/:limit/:page/:skip', requireUser,  rowLevelPermission('uctoo/minishop_sku_status'), minishopSkuStatusController.getMany);

//#endregion AutoCreateCode
export default uctoominishopSkuStatusRouter;
